package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="NewsClass"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class NewsClass implements Serializable {

    /** identifier field */
    private String classId;

    /** persistent field */
    private String className;

    /** persistent field */
    private String creator;

    /** persistent field */
    private String createDate;

    /** persistent field */
    private String isused;

    /** nullable persistent field */
    private String fathClass;

    /** nullable persistent field */
    private String classLevel;

    /** full constructor */
    public NewsClass(String classId, String className, String creator, String createDate, String isused, String fathClass, String classLevel) {
        this.classId = classId;
        this.className = className;
        this.creator = creator;
        this.createDate = createDate;
        this.isused = isused;
        this.fathClass = fathClass;
        this.classLevel = classLevel;
    }

    /** default constructor */
    public NewsClass() {
    }

    /** minimal constructor */
    public NewsClass(String classId, String className, String creator, String createDate, String isused) {
        this.classId = classId;
        this.className = className;
        this.creator = creator;
        this.createDate = createDate;
        this.isused = isused;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="ClassId"
     *         
     */
    public String getClassId() {
        return this.classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    /** 
     *            @hibernate.property
     *             column="ClassName"
     *             length="100"
     *             not-null="true"
     *         
     */
    public String getClassName() {
        return this.className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    /** 
     *            @hibernate.property
     *             column="Creator"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getCreator() {
        return this.creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    /** 
     *            @hibernate.property
     *             column="CreateDate"
     *             length="23"
     *             not-null="true"
     *         
     */
    public String getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    /** 
     *            @hibernate.property
     *             column="IsUsed"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getIsused() {
        return this.isused;
    }

    public void setIsused(String isused) {
        this.isused = isused;
    }

    /** 
     *            @hibernate.property
     *             column="FathClass"
     *             length="10"
     *         
     */
    public String getFathClass() {
        return this.fathClass;
    }

    public void setFathClass(String fathClass) {
        this.fathClass = fathClass;
    }

    /** 
     *            @hibernate.property
     *             column="ClassLevel"
     *             length="1"
     *         
     */
    public String getClassLevel() {
        return this.classLevel;
    }

    public void setClassLevel(String classLevel) {
        this.classLevel = classLevel;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("classId", getClassId())
            .toString();
    }

}
